POV-Ray : Newsgroups : povray.unofficial.patches : Some ideas about SDL enhancements : Re: Some ideas about SDL enhancements Server Time
3 Jul 2024 06:18:17 EDT (-0400)
  Re: Some ideas about SDL enhancements  
From: Warp
Date: 1 Apr 2003 05:43:30
Message: <3e896d52@news.povray.org>
Christopher James Huff <cja### [at] earthlinknet> wrote:
>>   * #do - #until

> Why do...until() instead of do...while()? Similar constructs, but 
> do...while() seems more common.

  Because #until is unambiguous to the parser.
  When the POV-Ray parser sees the #do and a bit forward it sees a #while,
it has no way of knowing whether the #while is ending the #do or whether
it's starting a #while-loop.
  Using #until completely disambiguates this.

>>   * Handling bitmaps with a 2-dimensional color array.

> Hmm...not very memory efficient, and doesn't hook into POV's existing 
> internal image handling. A separate data type might be better.

  You are right. There could be a new "bitmap" type which is stored in
memory more efficiently than an 2-dimensional array of colors, but which
looks from the point of view of the SDL like such array. (The only difference
would be that if you want to create an identifier of type "bitmap" by other
means than using the image reasing function, there must be a special syntax
for that.)

-- 
#macro M(A,N,D,L)plane{-z,-9pigment{mandel L*9translate N color_map{[0rgb x]
[1rgb 9]}scale<D,D*3D>*1e3}rotate y*A*8}#end M(-3<1.206434.28623>70,7)M(
-1<.7438.1795>1,20)M(1<.77595.13699>30,20)M(3<.75923.07145>80,99)// - Warp -


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.